﻿@model RonYee.Models.Customer
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="box_padding">
    <h3><i class="ui-icons"></i>添加用户</h3>
    <div class="box_top ui-icons">
    </div>
    <div class="box_bg">
        <div class="box_padding">
            <div class="border_line">
                @using (Html.BeginForm())
                {
                    @Html.ValidationSummary(true)

                    <table width="100%" border="0" id="MyTable" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td class="tdName">
                                    学号
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.CustomerNo)
                                    @Html.ValidationMessageFor(model => model.CustomerNo)
                                </td>
                                <td class="tdName">
                                    用户名
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.Login)
                                    @Html.ValidationMessageFor(model => model.Login)
                                </td>
                            </tr>
                            <tr>
                                <td class="tdName">
                                    一卡通号码
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.CarNo)
                                    @Html.ValidationMessageFor(model => model.CarNo)
                                </td>
                                <td class="tdName">
                                    所属学院
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.Colloge)
                                    @Html.ValidationMessageFor(model => model.Colloge)
                                </td>
                            </tr>
                            <tr>
                                <td class="tdName">
                                    邮件地址
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.Email)
                                    @Html.ValidationMessageFor(model => model.Email)
                                </td>
                                <td class="tdName">
                                    联系方式
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.Phone)
                                    @Html.ValidationMessageFor(model => model.Phone)
                                </td>
                            </tr>
                            <tr>
                                <td class="tdName">
                                    用户类型
                                </td>
                                <td class="tdData">
                                    @Html.EditorFor(model => model.UserType)
                                    @Html.ValidationMessageFor(model => model.UserType)
                                </td>
                                <td class="tdData">
                                </td>
                                <td class="tdData">
                                    <input type="submit" value="创建" class="Button1 ui-icons" />
                                </td>
                            </tr>
                            <tr>
                                <td class="tdName">
                                    【注意】
                                </td>
                                <td class="tdData" colspan="3">
                                     创建成功后初始密码为"abc123"
                                </td>
                            </tr>
                            
                        </tbody>
                    </table>
                    
                }
            </div>
        </div>
    </div>
    <div class="box_down ui-icons">
    </div>
</div>
<div class="line_top">
</div>
